package com.hovhanna.monopoly.model.deeds;

import com.hovhanna.monopoly.model.Board;
import com.hovhanna.monopoly.model.Player;

public abstract class Deed {
    private String name;
    private int price;
    
    public Deed(String name, int price) {
        this.name = name;
        this.price = price;
    }
    
    public abstract int getRent(Board board, Player owner);
    
    public int getMortgageValue() {
        return price / 2;
    }
    
    public int getUnmortgageCost() {
        return price * 11 / 20; // (price / 2) * (1 + 1/10) 
    }
}
